package com.wg.msshopsp.backendmanagement.user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@TableName("user")
@NoArgsConstructor // 无参构造
@AllArgsConstructor // 有参构造
@Schema(description = "用户表")
public class User implements Serializable {
    @Schema(description = "用户编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @Schema(description = "用户名")
    private String userName;
    @Schema(description = "密码")
    private String pwd;
    @Schema(description = "头像")
    private String avatar;
    @Schema(description = "昵称")
    private String nc;
    @Schema(description = "手机号")
    private String phone;
    @Schema(description = "邮箱")
    private String email;
    @Schema(description = "性别")
    private String sex;
    @Schema(description = "注册时间")
    private String createTime;
    @Schema(description = "账号状态")
    private Integer status;
    @Schema(description = "店铺数量")
    private Integer shopCount;
}
